﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Theme.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.ViewModels.CartViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Order
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<form id="paypal" action="<%= ConfigurationManager.AppSettings["PayPalSubmitUrl"] %>" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
    <input type="hidden" name="business" value="<%= ConfigurationManager.AppSettings["PayPalUsername"] %>" />
    <input type="hidden" name="item_name" value="A3 Fashion" />
    <input type="hidden" name="amount" value="<%: Model.Total %>" />
    <input type="hidden" name="return" value="http://localhost:20542/Paypal/Success" />
    <input type="hidden" name="custom" value="Registration started: <%= DateTime.Now.ToString() %>" />
    <p align="center"><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="middle" name="submit"/><a href="javascript: history.go(-1)"> | Or Return to previous page</a></p>
</form>
</asp:Content>